const BaseStyle = `color:#fff;padding:3px 5px;border-radius:3px;font-weight:bold;`
const ErrorStyle = BaseStyle + `background-color:#f56c6c;`
const WarningStyle = BaseStyle + `background-color:#E6A23C;`
const SuccessStyle = BaseStyle + `background-color:#67C23A;`
const InfoStyle = BaseStyle + `background-color:#909399;`
const log = {}
const info = (value: Object) => {
  console.log('%c' + value, InfoStyle)
}
const error = (value: Object) => {
  console.log('%cERROR', ErrorStyle, value)
  // throw value
}
const warn = (value: Object) => {
  console.log('%cWARN', WarningStyle, value)
  // throw value
}
const success = (value: Object) => {
  console.log('%cSUCCESS', SuccessStyle, value)
}
const image = () => {
  console.log(
    '%c',
    "padding:50px 300px;line-height:120px;background-image:url('https://i0.hdslb.com/bfs/space/cb1c3ef50e22b6096fde67febe863494caefebad.png@2560w_400h_100q_1o.webp') no-repeat;"
  )
}
export { info, error, warn, success, image }
